package org.king.service;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.king.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    public int addUser(User user);
    public boolean loginUser(String account, String password);
    public User getUserByAccount(String account);
    public List<User> getUsers();
    public int deleteUser(int userId);
}
